package cn.jn.lhm.netty.part09;

import io.netty.bootstrap.Bootstrap;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.ByteBufAllocator;
import io.netty.channel.ChannelOption;

/**
 * @author lhm 2753914576@qq.com
 * @time 2023/11/1 - 23:52
 **/
public class TestConnectTimeOut {
    public static void main(String[] args) {
        Bootstrap bootstrap = new Bootstrap();
        bootstrap.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 1000);
        bootstrap.option(ChannelOption.TCP_NODELAY, true);
        bootstrap.option(ChannelOption.ALLOCATOR, ByteBufAllocator.DEFAULT);
        // bootstrap.option()
        ServerBootstrap serverBootstrap = new ServerBootstrap();
        serverBootstrap.option(ChannelOption.SO_BACKLOG, 1024);
        //serverBootstrap.option();
        //serverBootstrap.childOption()
    }
}
